package book.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import book.dao.BookDao;
import book.pojo.Book;

@Service("bookService")
public class BookServiceImpl implements BookService{
	
	@Autowired
	private BookDao bookDao;

	@Override
	public List<Book> getBookList() {
		return bookDao.getBookList();
	}

	@Override
	public List<Book> getByClass(String bclass) {
		return bookDao.getByClass(bclass);
	}

	@Override
	public Book getByID(String bookID) {
		return bookDao.getByID(bookID);
	}

	@Override
	public List<Book> getHot() {
		return bookDao.getHot();
	}

}
